May 23, 2018
Ania Majewska
R in my research to:
The workshop series consists of four half day workshops each focusing on a different part of the research process
R (Today: Ania Majewska, Robbie Richards, Paige Miller)RYou
Instructors
At the end of this workshop you should be able to…
Topics
R and RStudio?Introduction to R and tidyverse
Break
Code along / Exercise
Break
Troubleshooting
Exploring data in groups
Break
Wrap Up
Datacamp.com
R) R packages which are collections of functions and data sets developed by the community.R programming easier:
Let's open Rstudio!
%>%) to connect data (object) to verbs (functions). The tidyverse package is designed to make it easy to install and load core packages from the tidyverse in a single command.
tidyverse package. This can be done by clicking on buttons in Rstudio or from the console using install.packages()# install all the packages in the tidyverse
install.packages("tidyverse")
library().# load tidyverse library
library(tidyverse)
Unzip and open the folder.
Open W1_Exercise.Rproj
Resume at 9am
Open W1_Exercise.Rmd
?function() to accessPackages have a vignette and/or reference manual on cran.r-project.org
People often make their own tutorials too
First, try to understand the error message. It can be very helpful.
Let's work in small groups (max [X])
W1_Exercise.Rmd fileMore instructions in the file.
We can…
using
dplyr package
ggplot2 package
Next week
Focus on communication by following best practices for reproducible research
We will be using datacamp.com to build more skills!